import wsClient from './wsClient';
import chat from './websocket/chat';
import group from "./websocket/group";
import friend from "./websocket/friend";
import message from "./websocket/message";



const WEBIM = {
	initWebSocket(){
		wsClient.initWebSocket();
	},
    send(uri, send_data) {
        let data = {
            uri: uri,
            payload: send_data || []
        };
        return wsClient.send(data);
    },
    ...chat,
    ...group,
    ...friend,
    ...message
}

export default WEBIM
